JwtSignatureVerifier

fun interface JwtSignatureVerifier<out JWT>(source)

An interface that abstracts the verification of JWT signature

Implementations should provide checkSignature

Functions

Link copied to clipboard
abstract suspend fun checkSignature(jwt: String): JWT?

Implement this method to check the signature of the JWT and extract its payload

Link copied to clipboard
Link copied to clipboard
open suspend fun verify(jwt: String): Result<JWT>

Verifies the signature of the jwt and extracts its payload